import request from '@/utils/request'

// 添加学科
export const subjectAddPost = (data) => {
  return request({
    url: '/subject/add',
    method: 'post',
    data
  })
}

// 学科列表
export const subjectList = (params) => {
  return request({
    url: '/subject/list',
    params
  })
}

// 学科状态设置
export const subjectStatusPost = (data) => {
  return request({
    url: '/subject/status',
    method: 'post',
    data
  })
}

// 学科编辑
export const subjectEditPost = (data) => {
  return request({
    url: '/subject/edit',
    method: 'post',
    data
  })
}

// 学科删除
export const subjectRemovePost = (data) => {
  return request({
    url: '/subject/remove',
    method: 'post',
    data
  })
}
